package com.fanketly.funacg2.utils

import android.widget.Toast
import com.fanketly.funacg2.App

object ToastUtils {
    private var toast: Toast? = null
    fun shortToast(text: String) {
        if (toast != null) {
            toast!!.cancel()
            toast = null
        }
        toast = Toast.makeText(App.sApplication, text, Toast.LENGTH_SHORT)
        toast!!.show()
    }
}